<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加消息推送实例</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../style/index.css">
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <style>
        #editor-container {
            height: 310px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak class="minWidth">
        <el-form :model="form" :rules="rules" ref="contract" inline-message="true" style="width: 100%">
            <div class="table_titel">
                <div class="titel">添加消息推送实例</div>
            </div>
            <el-descriptions :column="2" border size="small">
                <el-descriptions-item label="实例名称">
                    <el-form-item prop="Dingtalk_Message_Name">
                        <el-input v-model.trim="form.Dingtalk_Message_Name" placeholder="请输入实例名称"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="消息模板">
                    <el-form-item prop="Template_SerialNumber">
                        <el-select @change="change" v-model.trim="form.Template_SerialNumber" clearable 
                            placeholder="请选择消息模板" filterable style="width: 100%">
                            <el-option v-for="(item,index) in template" :key="index" :label="item.Template_Name"
                                :value="item.Template_SerialNumber"></el-option>
                        </el-select>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="发送成员">
                    <el-form-item prop="userids">
                        <el-select v-model.trim="User_Id" clearable  placeholder="请选择发送的成员" filterable multiple style="width: 100%">
                            <el-option v-for="(item,index) in userids" :key="index" :label="item.User_Name"
                                :value="item.User_ID"></el-option>
                        </el-select>
                    </el-form-item>
                </el-descriptions-item>
            </el-descriptions>
            <component :is="Msg_Key" :data="Msg_Param"></component>
            <el-form-item class="form-operation">
                <el-button @click="window.history.back()">返回</el-button>
                <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
    <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
    <script type="text/javascript" src="../../../utils/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../component/component.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
    <script type="text/javascript" src="js/Components.js"></script>
    <script type="text/javascript" src="js/Message_Edit.js"></script>
</body>

</html>